home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
03
/
1
/
DISK0313.ZIP
/
USE-TIME.DOC
< prev
next >
Wrap
Text File
|
1984-05-30
|
3KB
|
65 lines
PRGTIM.EXE/(BAS) // TMSTRT.EXE/(BAS) // RPTUSE.BAS
The first two programs are UTILITIES, to be included in a BATCH file.
They calculate the amount of time spent by someone using the computer, and
they permit apportionment of the time between BUSINESS and NON-BUSINESS use.
The .EXE format permits faster access by the BATCH file, then the .BAS
programs, and does NOT require one to load BASIC. I therefore recommend this
method, and I have only included the BASIC programs so one can study and
modify the source listings.
"RPTUSE.BAS" provides a PRINT-OUT of data saved by PRGTIM in "PRGTIM.DTA."
It can be modified to sort the data, or data can first be sorted using
a data-base program, such as PC-FILE.
The programs are used as follows:
1. The program, `TMSTRT' is first invoked by the BATCH file. This
records the starting time in a file, "TMSTRT.DTA"
2. You then run whatever application programs you wish. When you
exit from the application program, the BATCH file then invokes `PRGTIM.'
3. `PRGTIM' asks the user for his name (or initials), for the name
of the application program just used, and permits up to twenty-four characters
of comments (which can be skipped).
4. `PRGTIM' then calculates the elapsed time, and asks the user to
indicate how much of that use time was for non-business purposes. Hitting
<enter> twice will mark ALL of the use for BUSINESS.
5. The program then writes, to the file "PRGTIM.DTA", the date, the
user's name, the name of the application program, the starting time, and the
number of hours & minutes of business and of non-business use. This file is
constantly appended, providing a continuous record of use.
6. The data in the file "PRGTIM.DTA" can easily be printed out as a
report, using a simple BASIC program. (Please see the program, "RPTUSE.BAS"
which can do this.)
In writing the batch (.BAT) file, it is important for `PRGTIM' to be able
to find "TMSTRT.DTA". In a two drive system, making B: the default, and
putting PRGTIM and TMSTRT in B: accomplishes this end.
Assuming a two drive system, with floppy diskettes, the AUTOEXEC.BAT or
(PRG.BAT) would look something like this:
PAUSE Be sure that disk with PRGTIM and TMSTRT is in DRIVE B:
B:
TMSTRT
.... ' (application program goes here, such as ` WS ')
PAUSE Be sure that disk with PRGTIM and TMSTRT.DTA is in DRIVE B:
B: ' B: is the default drive now so the data files can be found.
PRGTIM
A:
If one were to use the BASIC form of the programs, then one would need to
have BASIC.COM available on the disk, and the BATCH file would need to
contain the command, `BASIC' preceding `TMSTRT' and also preceding `PRGTIM'.
To print out a report, just load BASIC, and RUN "RPTUSE" .
Steve Kent
Marin PC-User's Group